import java.util.ArrayList;
import java.util.Random;


public class Car implements Cloneable{
	
	int irany; //0 egyenes, 1 jobbra, 2 balra
	
	ArrayList<Direction> turns = new ArrayList<>();
	
	double ticks = 0;
	
	int timeWaited = 0;
	
	
	Random random = new Random();
	
	
	public Car() {
	
		Direction[] directions = Direction.values();
		for(int i = 0; i < 10; i++) {
			turns.add( directions[ random.nextInt(2) ]);
		}
		
	}
	
	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

	public void move() {
		turns.remove(0);
	}
	public void	waitInLine() {
		timeWaited++;
	}
	
}
